package com.rpframework.module.common.bottom.controller

import com.rpframework.core.json.JsonResp
import com.rpframework.module.common.config.Config
import com.rpframework.module.common.url.RequestDescription
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.ResponseBody


@RequestMapping
@RequestDescription("基本控制层")
@Controller
@ResponseBody
open class CommonConfigController {
    @Qualifier("commonConfig")
    @Autowired
    lateinit var config: Config

    @RequestMapping
    @RequestDescription("获取多个URL字符串分割符号")
    open fun urlSplit() = JsonResp<String>().data(config.urlSplit)!!
}